package voxToolkit;

import grafico.ControleEventos;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;

public class FabricaVoxToolkit {

	public static Color background = new Color(51, 51, 102);
	public static Color azulMedio = new Color(51,51,140);
	public static Color branco = new Color(255,255,255);
	public static Dimension dimensaoBotao = new Dimension(40, 40);
	public static Font fonteMedia = new Font("cg", Font.BOLD, 20);
	public static Font fonteGrande = new Font("cg", Font.BOLD, 26);
	public static Border bordaClara = BorderFactory.createLineBorder(Color.white);
	public static Border bordaEscura = BorderFactory.createLineBorder(background);

	
	public static String criaToolTip(String dica)
	{
		return "<html><body bgcolor='#327EAE' text='#FFFFFF'><h2>&nbsp;" + 
			   dica +"&nbsp;</h2></body></html>";
	}
	
	public static JPanel painelFundoAzul()
	{
		JPanel painel = new JPanel();
		
		painel.setBackground( background );
		
		return painel;
	}
	
	public static JLabel labelBranco(String texto)
	{
		ControleEventos ctrlEventos;
		ctrlEventos = ControleEventos.instancia();

		JLabel label = new JLabel(texto);

		label.setForeground( Color.white );
		label.setFont( fonteMedia );
		label.setBackground( background );
		label.setFocusable(true);

		label.addFocusListener( ctrlEventos );
		label.addMouseListener( ctrlEventos );

		return label;
	}
	
}
